import type { ArticleData, ArticleResult } from "@/types/article"
import { http } from "@/utils/myRequest"

// 获取内容列表
export const getArticleListApi = (data: ArticleData) => {
    return http<ArticleResult>({
        url: '/v1_0/mp/articles',
        params: data
    })
}

// 删除文章
export const deleteArticleItemApi = (id: string) => {
    return http({
        url: `/v1_0/mp/articles/${id}`,
        method: 'DELETE'
    })
}